package com.mate.cloud.sensitive.controller;


import com.mate.cloud.protocol.response.BaseResponse;
import com.mate.cloud.protocol.web.controller.AdminBaseController;
import com.mate.cloud.sensitive.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cong zhi
 * @description User控制器
 * @email 448341911@qq.com
 * @date $ $
 * @version: v1.0
 */
@RestController
@RequestMapping("/user")
public class UserController extends AdminBaseController {


    @GetMapping("/userInfo")
    public BaseResponse<User> getUserInfo() {
        User user = new User();
        user.setName("刘老根");
        user.setIdCard("422225199005287012");
        user.setMobilePhone("13591293410");
        user.setAddress("深圳市南山区深圳湾一号6601");
        user.setPassword("abc123qwe");
        return successBodyResponse(user);
    }
}
